<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/mytags.jsp"%>
<title>贷款收款明细</title>
<t:base type="jquery,my97,easyui,dataTables,lhgdialog"></t:base>
<%@ include file="/jsp/common/common_script.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- extend -->
<script type="text/javascript">
var repaymentId = $.trim("${param.repaymentId}"),loanId = $.trim("${param.loanId}");
</script>
<script type="text/javascript" src="static_resources/javascript/model/sys_set/loan/loan_repayment_detail_edit.1.0.js"></script>
</head>



<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
	    <li><a href="javascript:void(0)">首页</a></li>
	    <li><a href="javascript:void(0)">贷款管理</a></li>
	    <li><a href="javascript:void(0)">贷款回收</a></li>
	    <li><a href="javascript:void(0)">收款明细</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    	<div class="formtitle"><span>本期收款记录</span></div>
    	<div class="tools">
			<div class="xline"></div>
				<ul class="toolbar">
					<li class="click _class_btn_add"><span><img src="<%=basePath %>static_resources/images/t01.png" /></span>添加收款记录</li>
				</ul>
			<div class="xline1"></div>
		</div>
	    <div class="toolsli">
   			<table cellpadding="0" cellspacing="0" border="0" class="tablelist" id="enterprise" ></table>
	    </div>
    
    	<div class="formtitle"><span>本期还款详情</span></div>
    	<div class="toolsli">
			<ul class="forminfo">
			    <form id="loanRepaymentdetail">
			    	<li>
		  				<table class="newtablelist" id="">
					        <tbody>
						        <tr>
							        <td class="newtd">贷款申请号</td>
							        <td><span name="loanCode" id="newtablelist_loanCode"></span>&nbsp;</td>
							        <td class="newtd">当前期数</td>
							        <td><span name="deadlineNumber"  id="newtablelist_deadlineNumber"></span>&nbsp;</td>
							        <td class="newtd">还款日期</td>
							        <td><span name="repayEndDate@[yyyy-MM-dd]"  id="newtablelist_repayEndDate"></span>&nbsp;</td>
						        </tr>
						        <tr>
						         <td class="newtd">所有期收款总金额</td>
							        <td><span name="repayTotalNew" id="newtablelist_repayTotal"></span>&nbsp;</td>
							        <td class="newtd">本期收款总金额</td>
							        <td><span name="repayTotal" id="newtablelist_repayTotal"></span>&nbsp;</td>
							        <td class="newtd">上次结余金额</td>
							        <td ><span name="remainTotalNew"  id="newtablelist_remainTotalLast"></span>&nbsp;</td>
						        </tr>
						   	</tbody>
						</table>
			    	</li>
				</form>
			</ul>
		</div>
		
		<!--  
		<div class="formtitle"><span>已过期还款详情</span></div>
		<div class="toolsli">
			<ul class="forminfo">
		    	<li>
					<table cellpadding="0" cellspacing="0" border="0" class="tablelist"  id="lastEnterprise" ></table>
				</li>
			</ul>
		</div>-->
		
		<div class="formtitle"><span>本期应还款详情</span></div>
		<div class="toolsli">
			<ul class="forminfo">
				<li>	
		    		<kl class="kl_three">
		    			<label>结算日期<b>*</b></label><input name="repayRealDate"  id="repayRealDate"  type="text" class="newinput190  easyui-validatebox Wdate" onClick="WdatePicker()"/>
		    		</kl>
		    		<kl class="kl_second">
		    			<!-- Loan_Close_Account_Mode_Code -->
	    				<label>结算方式<b>*</b></label>
			    		<select  name="repayType" id="repayType">
			    		</select>
			    		&nbsp;&nbsp;<input  type="button" onclick="computerRepaymentDetail(this)" class="scbtn" value="计算应收"/>  
		    		</kl>
		    	</li>
		    	<li>
		    		<form id="clear_account_defult">
				    	<table class="tablelist" id="">
				   			<thead>
						    	<tr>
							        <th>&nbsp;</th>
							        <th>本金</th>
							        <th>利息</th>
							        <th>手续费</th>
							        <th>调查费</th>
							        <th>管理费</th>
							        <th>滞纳金</th>
							        <th>违约金</th>
							        <th>催收费</th>
							        <th>法诉费</th>
							        <th>总计</th>
						        </tr>
					        </thead>
					        <tbody>
					        
					         <!--  
					         <tr class="odd">
							        <td><span>过期今日应收&nbsp;&nbsp;</span></td>
							        <td><span id="expiredplanCapital"></span>&nbsp;</td>
							        <td><span id="expiredplanInterest"></span>&nbsp;</td>
							        <td><span id="expiredplanHandingFee"></span>&nbsp;</td>
							        <td><span id="expiredplanInspectFee"></span>&nbsp;</td>
							        <td><span id="expiredplanManageFee"></span>&nbsp;</td>
							        <td><span id="expiredplanOverdueFee"></span>&nbsp;</td>
							        <td><span id="expiredplanBreachFee"></span>&nbsp;</td>
							        <td><span id="expiredplanCollectionFee"></span>&nbsp;</td>
							        <td><span id="expiredplanLegalFee"></span>&nbsp;</td>
							        <td><span id="expiredplanTotal"></span>&nbsp;</td>
							        <td><span id="expiredrepayTotal"></span>&nbsp;</td>
						        </tr>
						        <tr class="even" id="currentRepayDetail">
							        <td><span>本期今日应收&nbsp;&nbsp;</span></td>
							        <td><span name="planCapital"></span>&nbsp;</td>
							        <td><span name="planInterest"></span>&nbsp;</td>
							        <td><span name="planHandingFee"></span>&nbsp;</td>
							        <td><span name="planInspectFee"></span>&nbsp;</td>
							        <td><span name="planManageFee"></span>&nbsp;</td>
							        <td><span name="planOverdueFee"></span>&nbsp;</td>
							        <td><span name="planBreachFee"></span>&nbsp;</td>
							        <td><span name="planCollectionFee"></span>&nbsp;</td>
							        <td><span name="planLegalFee"></span>&nbsp;</td>
							        <td><span name="planTotal"></span>&nbsp;</td>
							        <td><span name="repayTotal"></span>&nbsp;</td>
						        </tr>
						        -->
						        
						        <tr class="odd" id="currentRepayDetailSum">
							        <td><span>今日应收(<a href="javascript:void(0);"  onclick="currentRepayDetailClick();" class="tablelink">详情</a>)</span></td>
							        <td><span name="planCapital"></span>&nbsp;</td>
							        <td><span name="planInterest"></span>&nbsp;</td>
							        <td><span name="planHandingFee"></span>&nbsp;</td>
							        <td><span name="planInspectFee"></span>&nbsp;</td>
							        <td><span name="planManageFee"></span>&nbsp;</td>
							        <td><span name="planOverdueFee"></span>&nbsp;</td>
							        <td><span name="planBreachFee"></span>&nbsp;</td>
							        <td><span name="planCollectionFee"></span>&nbsp;</td>
							        <td><span name="planLegalFee"></span>&nbsp;</td>
							        <td><span name="planTotal"></span>&nbsp;</td>
						        </tr>
						        <tr class="even" id="computerTheRepayDetailSum2">
							        <td><span>提前应收(<a href="javascript:void(0);"  onclick="advanceRepayDetailClick();" class="tablelink">详情</a>)</span></td>
							        <td><span name="planCapital"></span>&nbsp;</td>
							        <td><span name="planInterest"></span>&nbsp;</td>
							        <td><span name="planHandingFee"></span>&nbsp;</td>
							        <td><span name="planInspectFee"></span>&nbsp;</td>
							        <td><span name="planManageFee"></span>&nbsp;</td>
							        <td><span name="planOverdueFee"></span>&nbsp;</td>
							        <td><span name="planBreachFee"></span>&nbsp;</td>
							        <td><span name="planCollectionFee"></span>&nbsp;</td>
							        <td><span name="planLegalFee"></span>&nbsp;</td>
							        <td><span name="planTotal"></span>&nbsp;</td>
						        </tr>
								<tr class="odd" id="computerTheRepayDetailSum1">
								    <td><span>计算应收</span></td>
								    <td><span name="planCapital"></span>&nbsp;</td>
							        <td><span name="planInterest"></span>&nbsp;</td>
							        <td><span name="planHandingFee"></span>&nbsp;</td>
							        <td><span name="planInspectFee"></span>&nbsp;</td>
							        <td><span name="planManageFee"></span>&nbsp;</td>
							        <td><span name="planOverdueFee"></span>&nbsp;</td>
							        <td><span name="planBreachFee"></span>&nbsp;</td>
							        <td><span name="planCollectionFee"></span>&nbsp;</td>
							        <td><span name="planLegalFee"></span>&nbsp;</td>
							        <td><span name="planTotal"></span>&nbsp;</td>
							    </tr>
						        <input name="id"  type="hidden"  value="${param.id}"/>
						        <input name="repaymentId"   type="hidden"  value="${param.repaymentId}"/>
						        <input name="repayType" id="clearRepayType" type="hidden"  value=""/>  
						        <input name="repayRealDate" id="clearRepayRealDate" type="hidden"  value=""/>
						        <tr class="even">
							        <td><span>减免费用&nbsp;&nbsp;</span></td>
							        <td><span>无</span></td>
							        <td><span>无</span></td>
							        <td><span>无</span></td>
							        <td><input name="reduceInspectFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="reduceManageFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="reduceOverdueFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="reduceBreachFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="reduceCollectionFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="reduceLegalFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><span name="reduceTotal"></span>&nbsp;</td>
						        </tr>  
						        <tr class="odd">
							        <td><span>当前实收&nbsp;&nbsp;</span></td>
							        <td><input name="realCapital" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="realInterest" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="realHandingFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="realInspectFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="realManageFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="realOverdueFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="realBreachFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="realCollectionFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><input name="realLegalFee" type="text" class="newinput90  easyui-validatebox" value="0"/>&nbsp;&nbsp;</td>
							        <td><span></span>&nbsp;</td>
						        </tr>
						        
					        </tbody>
				   		</table>
			   		</form>
		    	</li>
		    	<li>
					<label>备注<b></b></label><textarea name="payRemark" class="textinput easyui-validatebox"></textarea>
				</li>
		    	<li>
		    		<label>&nbsp;</label>
		    		<input type="button" class="scbtn" value="全额结清" onclick="clearingAccount1();"/>&nbsp;&nbsp;&nbsp;&nbsp;
		    		<input type="button" class="scbtn" value="提前结清" onclick="clearingAccount2();"/>&nbsp;&nbsp;&nbsp;&nbsp;
		    	</li>	
			</ul>
	    </div>
		<!-- 
		
		<div class="formtitle"><span>新增/编辑收款记录</span></div>
    	<div class="toolsli">
    		<form id="_form_repayment_log_default_"  enctype="multipart/form-data" method="post">
    		<input type="hidden" name="loanId" id="repaymentLogLoanId"  value="${param.loanId}"/>
    		<input type="hidden" name="repaymentDetailId" id="repaymentLogDetailId"  value="${param.id}"/>
    		<input type="hidden" name="repaymentId" id="repaymentId"  value="${param.repaymentId}"/>
    		<input type="hidden" name="id" id="repaymentLogId" />
  	 			<ul class="forminfo">
  	 				<li>
					    <kl class="kl_three">
							<label>收款人<b>*</b></label>
					    	<input name="repayUserName" type="text" class="newinput190 easyui-validatebox" data-options="required:true" data-options="validType:['length[1,50]']"/>    
						</kl>
						<kl class="kl_second">
					    	<label>收款时间<b>*</b></label>
					    	<input name="repayDate" type="text" class="newinput190 easyui-validatebox Wdate"  data-options="required:true"  onClick="WdatePicker()" /> 
					    </kl>
					</li>
					<li>
						<kl class="kl_three">
							<label>收款金额<b>*</b></label>
					    	<input name="repayAmount" type="text" class="newinput120 easyui-validatebox" data-options="required:true"/>（元）  
						</kl>
						<kl class="kl_second">
					    	<label>交易方式<b>*</b></label>
					    	<select id="payType" name="payType">
				    		</select>
					    </kl>
					</li>
					<li>
					    <kl class="kl_three">
							<label>汇款人<b>*</b></label>
					    	<input name="payClientName" type="text" class="newinput190 easyui-validatebox" data-options="required:true"/>    
						</kl>
						<kl class="kl_second">
					    	<label>汇款银行<b></b></label>
					    	<select id="payBankName" name="payBankName" data-options="required:true">
				    		</select> 
					    </kl>
					</li>
					<li>
					    <kl class="kl_three">
							<label>汇款银行账户<b></b></label>
					    	<input name="payBankAccount" type="text" class="newinput190 easyui-validatebox"/>    
						</kl>
					</li>
					<li>
	     				<label>收款备注<b></b></label>
		   				<textarea rows="" cols="" class="textinput easyui-validatebox" id="repayRemark" name="repayRemark"></textarea>
		   			</li>
			    	<li><label>&nbsp;</label><input  type="button"  id="submit_repayment_log" class="scbtn" value="保存"  onclick="submitRepaymentLog();"/>&nbsp;&nbsp;&nbsp;&nbsp;<input  type="button" onclick="resetRepaymentLog(this);" class="scbtn" value="重置"/></li>
			    </ul>
   			</form>
	    </div>
	     -->
	    
	    
    	<div class="formtitle"><span>贷款回款信息</span></div>
    	<div class="toolsli">
		  	<form id="loanRepayment">
		  		<ul class="forminfo">
					<li>
						<table class="newtablelist" id="">
					        <tbody>
						        <tr>
							        <td class="newtd">贷款申请号</td>
							        <td><span name="loanCode"></span>&nbsp;</td>
							        <td class="newtd">合同编号</td>
							        <td colspan="3"><span name="contractCode"></span>&nbsp;</td>
							        <!-- 
							        <td class="newtd">所属网点</td>
							        <td><span name="webName"></span>&nbsp;</td>
							         -->
						        </tr>
						        <tr>
							        <td class="newtd">贷款人</td>
							        <td><span name="loanBorrower"></span>&nbsp;</td>
							        <td class="newtd">身份证号</td>
							        <td><span name="clientCardId"></span>&nbsp;</td>
							        <td class="newtd">客户性质</td>
							        <td><span name="loanNatureClilent@Loan_Nature_Clilent_Code"></span>&nbsp;</td>
						        </tr>
						        <tr>
							        <td class="newtd">贷款产品</td>
							        <td><span name="loanProduct@Loan_Product_Code"></span>&nbsp;</td>
							        <td class="newtd">业务性质</td>
							        <td><span name="loanNatureBusiness@Loan_Nature_Business_Code"></span>&nbsp;</td>
							        <td class="newtd">资金性质</td>
							        <td><span name="loanNatureFund@Loan_Nature_Fund_Code"></span>&nbsp;</td>
						        </tr>
						        <tr>
							        <td class="newtd">贷款金额（元）</td>
							        <td><span name="finalLimit"></span>&nbsp;</td>
							        <td class="newtd">贷款期限（月）</td>
							        <td><span name="finalDeadline"></span>&nbsp;</td>
							        <td class="newtd">还款方式</td>
							        <td><span name="loanRepayType@Loan_Repay_Type_Code"></span>&nbsp;</td>
						        </tr>
						        <tr>
							        <td class="newtd">月利率（%）</td>
							        <td><span name="finalRate"></span>&nbsp;</td>
							        <td class="newtd">管理费率（%）</td>
							        <td><span name="finalRateManage"></span>&nbsp;</td>
							        <td class="newtd">手续费率（%）</td>
							        <td><span name="finalRateHandling"></span>&nbsp;</td>
						        </tr>
						        <tr>
							        <td class="newtd">已收/总期数</td>
							        <td><span name="deadlineReal"></span>&nbsp;/<span name="deadlineTotal"></span>&nbsp;</td>
							        <td class="newtd">放款日期</td>
							        <td><span name="payDate@[yyyy-MM-dd]"></span>&nbsp;</td>
							        <td class="newtd">贷款状态</td>
							        <td><span name="loanStatus@Loan_Status_Code"></span>&nbsp;</td>
						        </tr>
						        <tr>
							        <td class="newtd">已收本金（元）</td>
							        <td><span name="capitalReal"></span>&nbsp;</td>
							        <td class="newtd">已收利息（元）</td>
							        <td><span name="interestReal"></span>&nbsp;</td>
							        <td class="newtd">已收管理费（元）</td>
							        <td><span name="manageFeeReal"></span>&nbsp;</td>
						        </tr>
						        <tr>
							        <td class="newtd">已收手续费（元）</td>
							        <td><span name="handingFeeReal"></span>&nbsp;</td>
							        <td class="newtd">已收调查费（元）</td>
							        <td><span name="inspectFeeReal"></span>&nbsp;</td>
							        <td class="newtd">已收滞纳金（元）</td>
							        <td><span name="overdueFeeReal"></span>&nbsp;</td>
						        </tr>
						        <tr>
							        <td class="newtd">已收违约金（元）</td>
							        <td><span name="breachFeeReal"></span>&nbsp;</td>
							        <td class="newtd">已收催收费（元）</td>
							        <td><span name="collectionFeeReal"></span>&nbsp;</td>
							        <td class="newtd">已收法诉费（元）</td>
							        <td><span name="legalFeeReal"></span>&nbsp;</td>
						        </tr>
						 	</tbody>
						</table>
			    	</li>
				</ul>
			</form> 
	    </div>
    </div>
</body>
</html>
